import { createRouter, createWebHashHistory } from 'vue-router'
import registerHook from './registerHook'
import routes from './routes'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  linkActiveClass: 'router-link-active',
  linkExactActiveClass: 'router-link-exact-active',
  routes,
})

registerHook(router)

export default router
